package com.example.wlzz.tencentAI.dto;

import lombok.Data;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;

import java.util.List;

@Data
public class YingYe extends TencentRespon{
    private List<Item_listYingye> item_list;
    public YingYe(JSONObject object)throws Exception{
        ret = (Long)object.get("ret");
        msg = (String)object.get("msg");
        String str = object.get("data").toString();
        JSONParser parser=new JSONParser();
        JSONObject tojsonData =(JSONObject) parser.parse(str);
        item_list = (List<Item_listYingye>)tojsonData.get("item_list");
    }
}
